import request from '@/utils/request'

// 查询工单处理记录列表
export function listWorkSheetRecords(query) {
  return request({
    url: '/business/workSheetRecords/list',
    method: 'get',
    params: query
  })
}

// 查询工单处理记录详细
export function getWorkSheetRecords(id) {
  return request({
    url: '/business/workSheetRecords/' + id,
    method: 'get'
  })
}

// 新增工单处理记录
export function addWorkSheetRecords(data) {
  return request({
    url: '/business/workSheetRecords',
    method: 'post',
    data: data
  })
}

// 修改工单处理记录
export function updateWorkSheetRecords(data) {
  return request({
    url: '/business/workSheetRecords',
    method: 'put',
    data: data
  })
}

// 删除工单处理记录
export function delWorkSheetRecords(id) {
  return request({
    url: '/business/workSheetRecords/' + id,
    method: 'delete'
  })
}
